module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: '天沁财富-私募股权_信托资管_一站式财富管理平台',
    meta: [
      { charset: 'utf-8' },
      { name: 'Robots', content: 'All' },
      { name: 'viewport', content: 'width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no' },
      { hid:"keywords", name: 'keywords', content: '天沁财富,信托产品,私募股权,信托资管,契约基金,投资理财,财富管理,金融投资平台,第三方理财,天沁私募' },
      { hid:"description",name: 'description', content: '天沁财富,一个专业的金融理财投资平台,为高净值人群提供财富管理、海外资产投资、高端保险等全方位的综合金融服务,为投资者提供最佳资产配置方案、投资咨询服务。' },
      { name: 'apple-mobile-web-app-capable', content: 'yes' },
      { name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
      { "http-equiv": 'Cache-Control', content: 'max-age=0' },
      { "http-equiv": 'X-Frame-Options', content: 'deny' },
      { name: 'Author', content: '天沁财富-tqcaifu.com' },
      { name: 'Copyright', content: '天沁财富-tqcaifu.com' },
      { name: 'application-name', content: '天沁财富-tqcaifu.com' },
      { name: 'msapplication-tooltip', content: '天沁财富-tqcaifu.com' },
      { name: 'referrer', content: 'never' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      { rel: 'stylesheet', href: 'https://cdn.bootcss.com/animate.css/3.5.2/animate.min.css' }
    ],
    script: [
      {src: 'https://hm.baidu.com/hm.js?250f47bbed611169c4411bc57e663a30'}
     ]
  },
  /*
  ** Customize the progress bar color 
  */
  loading: { color: '#3B8070' },
  /*
  ** Build configuration
  */
 build: {
    /*
    ** Run ESLINT on save
    */
   extractCSS: {allChunks: true },
    extend (config, ctx) {
      if (ctx.isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: /(node_modules)/
        })
      }
      config.devtool = false
    },
    vendor:['element-ui', 'vue-resource'] 
  },
  plugins: [
    {
      src:'~plugins/ga.js',/*百度统计*/
      ssr:false,
    },
    {
      src:'~plugins/breadcrumbs.js',
      ssr:false,
    },
    {
      src:"~plugins/vue-resource",
      ssr:false,
    },
    {
      src: '~plugins/ElementUI',
      ssr: true,
    },{
      src: '~plugins/iconfont',
      ssr: false,
    },{
      src: '~plugins/wow',
      ssr: false,
    }],
    css: [
      'element-ui/lib/theme-chalk/index.css',
      'assets/main.css'
      // 'assets/animate.min.css'
    ],
    // router: {
    //     middleware: 'breadcrumbs'
    // }
}
